package cn.kgc.mapper;

import cn.kgc.pojo.Pet;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PetMapper {
    List<Pet> getAllPetList();
    Pet getPetByName(String name);
    Pet getPetById(int id);
    int insertPet(Pet pet);
    int deletePet(int id);

    List<Pet> getPetByNameOrNumber(@Param("name")String name, @Param("num")String num);
}
